﻿using System;
using System.ComponentModel.DataAnnotations;

namespace IotWeek2Day9.Models
{
    /// <summary>
    /// 员工模型
    /// </summary>
    public class Emp
    {
        [Key]
        public int EId { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        [StringLength(20)]
        [Required]
        public string EName { get; set; }
    }
}
